/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package servlet;

import bean_session.CompetencesLocal;
import entity_bean.Competence;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author Mamoune
 */
@ManagedBean(name="competence")
@RequestScoped
public class CompetenceBean {
    @EJB
    private CompetencesLocal competences;
    private List<Competence> listComp;
    private Competence comp;
    /** Creates a new instance of CompetenceBean */
    public CompetenceBean() {
        //this.setComp(new Competence());
    }
    
     public List<Competence> getListComp(){
          listComp = competences.listCompetence();
         return  listComp;
     }
     
     public void setListCompetence(List<Competence> listComp) {
        this.listComp = listComp;
    }
    
     public void setComp(Competence comp){
         this.comp=comp;
     }
     
}
